package com.yuelife.service.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/****
 * @Author:admin
 * @Description:SOrder构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "SOrder",value = "SOrder")
@Table(name="s_order")
public class SOrder implements Serializable{

	@ApiModelProperty(value = "自增长订单id)",required = false)
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "order_Id")
	private Integer orderId;//自增长订单id)

	@ApiModelProperty(value = "用户id",required = false)
    @Column(name = "useId")
	private Integer useId;//用户id

	@ApiModelProperty(value = "提交时间",required = false)
    @Column(name = "create_time")
	private Date createTime;//提交时间

	@ApiModelProperty(value = "用户名称",required = false)
    @Column(name = "usename")
	private String usename;//用户名称

	@ApiModelProperty(value = "订单状态：0->待付款；1->待接单；2->已接单；3->已完成；4->已关闭；5->无效订单",required = false)
    @Column(name = "status")
	private String status;//订单状态：0->待付款；1->待接单；2->已接单；3->已完成；4->已关闭；5->无效订单

	@ApiModelProperty(value = "订单总金额",required = false)
    @Column(name = "total_amount")
	private Integer totalAmount;//订单总金额

	@ApiModelProperty(value = "实际支付金额",required = false)
    @Column(name = "pay_amount")
	private Integer payAmount;//实际支付金额

	@ApiModelProperty(value = "地址",required = false)
    @Column(name = "address")
	private String address;//地址

	@ApiModelProperty(value = "商家id",required = false)
    @Column(name = "storeId")
	private Integer storeId;//商家id

	@ApiModelProperty(value = "收货人姓名",required = false)
    @Column(name = "get_name")
	private String getName;//收货人姓名

	@ApiModelProperty(value = "收货人电话",required = false)
    @Column(name = "get_mobile")
	private String getMobile;//收货人电话

	@ApiModelProperty(value = "备注",required = false)
    @Column(name = "note")
	private String note;//备注

	private List<SOrderItem> sOrderItem;//一个订单多个订单条目

	public List<SOrderItem> getsOrderItem() {
		return sOrderItem;
	}

	public void setsOrderItem(List<SOrderItem> sOrderItem) {
		this.sOrderItem = sOrderItem;
	}

	//get方法
	public Integer getOrderId() {
		return orderId;
	}

	//set方法
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	//get方法
	public Integer getUseId() {
		return useId;
	}

	//set方法
	public void setUseId(Integer useId) {
		this.useId = useId;
	}
	//get方法
	public Date getCreateTime() {
		return createTime;
	}

	//set方法
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	//get方法
	public String getUsename() {
		return usename;
	}

	//set方法
	public void setUsename(String usename) {
		this.usename = usename;
	}
	//get方法
	public String getStatus() {
		return status;
	}

	//set方法
	public void setStatus(String status) {
		this.status = status;
	}
	//get方法
	public Integer getTotalAmount() {
		return totalAmount;
	}

	//set方法
	public void setTotalAmount(Integer totalAmount) {
		this.totalAmount = totalAmount;
	}
	//get方法
	public Integer getPayAmount() {
		return payAmount;
	}

	//set方法
	public void setPayAmount(Integer payAmount) {
		this.payAmount = payAmount;
	}
	//get方法
	public String getAddress() {
		return address;
	}

	//set方法
	public void setAddress(String address) {
		this.address = address;
	}
	//get方法
	public Integer getStoreId() {
		return storeId;
	}

	//set方法
	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}
	//get方法
	public String getGetName() {
		return getName;
	}

	//set方法
	public void setGetName(String getName) {
		this.getName = getName;
	}
	//get方法
	public String getGetMobile() {
		return getMobile;
	}

	//set方法
	public void setGetMobile(String getMobile) {
		this.getMobile = getMobile;
	}
	//get方法
	public String getNote() {
		return note;
	}

	//set方法
	public void setNote(String note) {
		this.note = note;
	}


}
